/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconHeart: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M518.24 251.744l-6.272 5.92c-87.936-87.52-230.24-87.52-318.08-0.096a223.36 223.36 0 0 0 0 316.864l295.552 294.176a32 32 0 0 0 45.12 0l295.52-294.176a223.36 223.36 0 0 0 0-316.864 225.536 225.536 0 0 0-311.84-5.824z m-51.52 51.2l22.688 22.592a32 32 0 0 0 45.12 0l22.752-22.592a161.504 161.504 0 0 1 227.648 0l5.376 5.568a159.36 159.36 0 0 1-5.376 220.576L512 800.768l-272.96-271.68a159.36 159.36 0 0 1 0-226.176 161.504 161.504 0 0 1 227.648 0z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconHeart.defaultProps = {
  size: 18,
};

export default IconHeart;
